{include file="public/header"/}
{page:location}
{page:pos label="管理员管理" link="admin/admins/lists"/}
{page:pos label=":(isset($info)?'编辑':'新增').'管理员'"}
{/page:location}
<div id="container">
    {page:header title=":(isset($info)?'编辑':'新增').'管理员'"}
    <a href="{:url('lists')}" class="am-btn am-btn-xs am-btn-default" data-pjax><i class="am-icon-backward"></i> 返回列表</a>
    {/page:header}

    {form:form submit=":url($Request.action)" class="am-g-fixed" valid="true" index="info['id']"}
    {form:fieldset title="登录信息"}
        {form:input type="text" label="用户名" name="username" value="$info['username']" tips="请输入登录用户名" help="必填，只能输入字母\数字\下划线，长度为5~20个字符" valid="required|length:5,20" /}
        {form:input type="password2" label="登录密码" name="password" value="" tips="请输入登录密码(留空不修改密码)" help="密码长度为6~16个字符" /}
        {form:select label="状态" name="status" options="$status" value="$info['status']" help="选择锁定, 则帐号将无法登录" /}
        {form:input type="text" label="锁定原因" name="remark" value="$info['remark']" help="锁定帐号时,必须要填写原因" /}
    {/form:fieldset}
    {form:fieldset title="详细资料"}
        {form:label label="选择头像"}

        {/form:label}
        {form:input label="真实姓名" type="text" name="realname" value="$info['realname']" tips="请填写真实姓名" help="" valid="required" help="必填, 请输入您的真实姓名, 以便联系" /}
        {form:radio label="性别" options="$gender" name="gender" value="$info['gender']" default="0" help="" valid="required"/}
        {form:input label="手机号码" type="text" name="mobile" value="$info['mobile']" tips="请填写手机号码" help="" valid="mobile" help="手机号码只能输入11位的数字"/}
        {form:input label="E-mail" type="email" name="email" value="$info['email']" tips="请填写邮箱地址" help="" /}
    {/form:fieldset}
    {/form:form}
</div>
{include file="public/footer"/}